package ace.cmp.spring.data.jdbc.test.dao.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.annotation.Version;
import org.springframework.data.relational.core.mapping.Table;

/**
 * @author caspar
 * @date 2023/2/13 10:10
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("cas_user")
public class CASUser implements Serializable {
  @Id private String id;
  private String name;
  private String mobile;
  @Version private Long rowVersion;
  @LastModifiedDate private LocalDateTime updateTime;
  @CreatedDate private LocalDateTime createTime;
}
